Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow skipping of update phases when they were already executed #931

Merged
merged 2 commits into from
Sep 26, 2024

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Sep 26, 2024

Fixes: 5c59f9c

def with_non_empty_scenario(phase)
next_scenario = scenario(phase)
next_scenario = find_scenario(phase)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was unused, so nobody noticed

Comment on lines -98 to +112
rollback_needed = scenario(:pre_migrations).steps.any? { |s| s.executed? && s.success? }
rollback_needed = find_scenario(:pre_migrations).steps.any? { |s| s.executed? && s.success? }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am amazed this was not noticed

Comment on lines +39 to +43
if skip?(phase)
skip_phase(phase)
else
run_phase(phase)
end
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to 3a2fa00 there is currently no way to re-run a skipped phase tho :(

@sayan3296
Copy link
Contributor

I tested with the packit build on el8, which helps solve the issue.

rubygem-foreman_maintain-1.7.4-1.20240926093223538747.pr931.2.g93ae9d8.el8.noarch

@evgeni
Copy link
Member Author

evgeni commented Sep 26, 2024

After discussion with @ares, I am going to merge this to get a release out.

@ehelms you can yell at us next week (or not).

@evgeni evgeni merged commit 6ea143a into master Sep 26, 2024
8 checks passed
@evgeni evgeni deleted the skip-update-phases branch September 26, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants